package com.hfut.ccs.biz.impl;

import com.hfut.ccs.biz.ICustomerServiceBiz;
import com.hfut.ccs.entity.CustomerService;
import com.hfut.ccs.mapper.CustomerServiceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service//告诉SpringBoot这是一个业务对象
public class CustomerServiceBiz implements ICustomerServiceBiz {
    //依赖的持久化现象
    @Autowired
    private CustomerServiceMapper customerServiceMapper;

    @Override
    public int save(CustomerService cs) {
        return 0;
    }

    @Override
    public int register(CustomerService cs) {
        return 0;
    }

    @Override
    public CustomerService login(String account, String password) {
        return null;
    }

    @Override
    public int updateCustomerService(CustomerService cs) {
        return 0;
    }

    @Override
    public int resetPassword(int id, String password) {
        return 0;
    }

    @Override
    public int resetPassword(int id, String oldPwd, String newPwd) {
        return 0;
    }

    @Override
    public int delete(int id) {
        return customerServiceMapper.deleteById(id);
    }

    @Override
    public int delete(List<Integer> ids) {
        return customerServiceMapper.deleteBatch(ids);
    }

    @Override
    public List<CustomerService> queryListByPage(Map<String, String> params) {
        return null;
    }

    @Override
    public int updateWorkStatus(int id, int workStatus) {
        return 0;
    }

    @Override
    public int updateOnlineStatus(int id, int onlineStatus) {
        return 0;
    }

    @Override
    public int updateCustomerServiceByMaster(CustomerService cs) {
        return 0;
    }

    @Override
    public CustomerService queryById(int id) {
        return customerServiceMapper.queryById(id);
    }
}
